
//
//  UIlable + Extension.swift
//  微博新浪
//
//  Created by hezerong on 16/6/8.
//  Copyright © 2016年 Rocky. All rights reserved.
//

import UIKit

extension UILabel {


    convenience init(text:String?,
        textColor:UIColor = UIColor.darkGrayColor(),
        fontSize: CGFloat = 12,
        textAlignment:NSTextAlignment = .Left,
        numberOfLines: Int = 0){
    
            self.init()
    
            self.text = text ?? ""
            self.textColor = textColor
            self.font = UIFont.systemFontOfSize(fontSize)
            self.textAlignment = textAlignment
            self.numberOfLines = numberOfLines
            
    
    }
}
